<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<!DOCTYPE html>
<html>
<head>
<jsp:include page="../head.jsp"/>
<title>信息工程学院成教管理系统-修改缴费信息</title>
</head>
<body>
	<div class="container">
	<jsp:include page="../menu.jsp"/>
		<div class="row">
			<div class="col-md-offset-5 col-md-2">
				<h3 class="text-center">修改缴费信息</h3>
			</div>
		</div>
	
		<div class="row">
			<div class="col-md-offset-2 col-md-6">
				<form class="form-horizontal" method="post" action="alterpayment.do">
				
					<div class="form-group has-feedback">
						<div class="col-md-8">
							<input type="hidden" class="form-control" name="id" value="${payment.id }" readonly>
						</div>
					</div>
				
					<div class="form-group has-feedback">
						<label class="col-sm-4 control-label">学号</label>
						<div class="col-md-8">
							<input type="text" class="form-control" name="sno" value="${payment.student.sno }" readonly>
						</div>
					</div>

					<div class="form-group has-feedback">
						<label class="col-sm-4 control-label">姓名</label>
						<div class="col-md-8">
							<input type="text" class="form-control" name="sname" value="${payment.student.sname }" readonly>
						</div>
					</div>
				
					<div class="form-group has-feedback">
						<label class="col-sm-4 control-label">所在班级</label>
						<div class="col-md-8">
							<select id="class" name="clazz" class="form-control" readonly>
							
								<c:forEach items="${clazznames }" var="clazzname">
								<c:if test="${fn:contains(payment.student.clazz.name,clazzname)}" >
								<option selected = "selected">${clazzname}</option>
								</c:if>
								<c:if test="${fn:contains(payment.student.clazz.name,clazzname)==false}">
								<option>${clazzname}</option>
								</c:if>	
								</c:forEach>	
													
							</select>
						</div>
					</div>
					<div class="form-group has-feedback">
						<label class="col-sm-4 control-label">所在学院</label>
						<div class="col-md-8">
							<select name="college" class="form-control" readonly>
								
								<c:forEach items="${clazzcolleges }" var="college">
								<c:if test="${fn:contains(payment.student.clazz.college,college)}">
								<option selected = "selected">${college}</option>
								</c:if>
								<c:if test="${fn:contains(payment.student.clazz.college,college)==false}">
								<option>${college}</option>
								</c:if>	
								</c:forEach>
													
							</select>

						</div>
					</div>
				
					<div class="form-group has-feedback">
						<label class="col-sm-4 control-label">缴费时间</label>
						<div class="col-md-8">
							<div class="input-group date form_date col-md-16" data-date="" data-date-format="dd MM yyyy" data-link-field="dtp_input2" data-link-format="yyyy-mm-dd">
                    		<input name="paytime" class="form-control" size="32" type="text" value="${payment.time }" readonly>
                    		<span class="input-group-addon"><span class="glyphicon glyphicon-remove"></span></span>
							<span class="input-group-addon"><span class="glyphicon glyphicon-calendar"></span></span>
                		</div>
						</div>
					</div>
				
					<div class="form-group has-feedback">
						<label class="col-sm-4 control-label">缴费金额</label>
						<div class="col-md-8">
							<input type="text" class="form-control" name="money" value="${payment.money }">
						</div>
					</div>
				
					<div class="form-group has-feedback">
						<label class="col-sm-4 control-label">发票号</label>
						<div class="col-md-8">
							<input type="text" class="form-control" name="paynumber" value="${payment.number }">
						</div>
					</div>
				
					<div class="form-group has-feedback">
						<label class="col-sm-4 control-label">备注</label>
						<div class="col-md-8">
							<input type="text" class="form-control" name="remark" value="${payment.remark }" >
						</div>
					</div>
					<div class="form-group">
						<div class="col-md-offset-6 col-md-4">
							<button type="submit" class="btn btn-default btn-primary btn-block">确认修改</button>
						</div>
					</div>
				</form>
			</div>
		</div>
	</div>
	<script type="text/javascript">
	$('.form_date').datetimepicker({
		 language:  'zh-CN',
        format:'yyyy-MM-dd',
        weekStart: 1,
        todayBtn:  1,
		autoclose: 1,
		todayHighlight: 1,
		startView: 2,
		minView: 2,
		forceParse: 0
    });
	
</script>
</body>
<script src="<%=request.getContextPath()%>/js/jquery.min.js" type="text/javascript"></script>
<script src="<%=request.getContextPath()%>/js/queryClass.js" type="text/javascript" ></script>
</html>